//
//  OPHNavgationBar.h
//  OpenPractice
//
//  Created by tanyuehong on 2021/10/20.
//  Copyright © 2021  lijinghua. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, OPNavgationBarType) {
    OPNavgationBarTypeHome     = 0,
    OPNavgationBarTypePractice = 1,
    OPNavgationBarTypeCommon   = 2,
};

@interface OPHomeNavgationBar : UIView

@property (nonatomic,assign)OPNavgationBarType barType;

/// 点击头像的回调
@property (nonatomic,copy) void(^clickAvatarBtnBlock)(void);

// 登录
@property (nonatomic,copy) void(^clickLeftBtnBlcok)(void);

/// 切换年级
@property (nonatomic,copy) void(^clickChangeGradeBlcok)(void);

/// 点击历史记录的回调
@property (nonatomic, copy) void(^clickRecordBtnBlock)(void);

/// 点击了消息中心的回调
@property (nonatomic, copy) void(^clickMessageBtnBlock)(void);

/// 点击搜索的回调
@property (nonatomic, copy) void(^clickSearchBtnBlock)(NSString * __nullable);

/// 点相机lottie的回调
@property (nonatomic, copy) void(^clickCameraBtnBlock)(void);

- (void)showGradeUpdateTipsView:(NSString *)text;

- (void)refreshNavgationBar:(CGFloat)persent;

- (void)userBtnBadgeState:(BOOL)show;

- (BOOL)isOverOneDay:(NSString *)key;

- (void)setupSearchViewHidden:(BOOL)hidden;

- (void)viewWillAppear;

@end

NS_ASSUME_NONNULL_END
